package orthoplanner.com.google.code.eventhandlers;

import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;

import orthoplanner.com.google.code.ui.ImageViewer;


public class ClearAllListener extends MouseAdapter {
	
	private ImageViewer imgViewer;
	public ClearAllListener(ImageViewer imgViewer){
		this.imgViewer=imgViewer;
		}
	@Override
	public void mousePressed(MouseEvent e) {
	imgViewer.noLoop();
	imgViewer.clearDrawables();
	imgViewer.loop();
	}

}
